<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div>
    <div class="well well-impressed" style="margin: 5% auto;max-width: 215px;">
        <h4 class="simple-header"><i class="aweso-icon-lock"></i> Private Access</h4>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        ?>
        <div class="control-group">
            <?php echo $form->labelEx($model, 'username', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'username'); ?>
                <?php echo $form->error($model, 'username'); ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo $form->labelEx($model, 'password', array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model, 'password'); ?>
                <?php echo $form->error($model, 'password'); ?>
            </div>
        </div>
        <div class="control-group">
            
            <div class="controls">
                <?php echo $form->label($model, $form->checkBox($model, 'rememberMe').' rememberMe', array('class' => 'checkbox')); ?>
                <?php echo $form->error($model, 'rememberMe'); ?>
                <?php echo CHtml::submitButton('Login'); ?>
            </div>
        </div>
        <hr class="margin-mx">
        <?php $this->endWidget(); ?>
    </div>
    <!-- // form horizontal -->
